package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        Student zg = new Student();
        zg.name="张光";
        zg.age=16;
        zg.address="未知";
        zg.className="jsd2406";
        zg.stuId="001";
        zg.eat();
        zg.sleep();
        zg.sayHi();
        zg.study();
        System.out.println("------------------------------");
        Student ll=new Student("李林",16,"未知","jsd2406","002");
        ll.eat();
        ll.sleep();
        ll.sayHi();
        ll.study();
        System.out.println("------------------------------");
        Teacher zl =new Teacher("赵亮",20,"北京",6000.0);
        zl.eat();
        zl.sleep();
        zl.sayHi();
        zl.teach();
        System.out.println("------------------------------");
        Doctor jj = new Doctor("九九",20,"南京","主任医生");
        jj.eat();
        jj.sleep();
        jj.sayHi();
        jj.cut();
    }
}
